<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //编写一个函数，计算三个不同数字的大小，按从小到大顺序打印
        //穷举法
        function a(a,b,c){
          if(a<b&&b<c){
            console.log(a,b,c)
          }else if(a<c&&c<b){
            console.log(a,c,b)
          }else if(b<a&&a<c){
            console.log(b,a,c)
          }else if(b<c&&c<a){
            console.log(b,c,a)
          }else if(c<a&&a<b){
            console.log(c,a,b)
          }else if(c<b&&b<a){
            console.log(c,b,a)
          }
        }
        a(1111,3111,22222)

    </script>
</body>
</html>